package com.ruoyi.common.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * 处理并记录日志文件
 * 
 * @author ruoyi
 */
public class LogUtils
{
    private static final Logger logger = LoggerFactory.getLogger(LogUtils.class);
    public static String getBlock(Object msg)
    {
        if (msg == null)
        {
            msg = "";
        }
        return "[" + msg.toString() + "]";
    }

    public static void info(String message) {
        logger.info(message);
    }

    public static void error(String message) {
        logger.error(message);
    }
}
